package com.rmb.client;

import com.rmb.entity.EtlDataEngine;
import com.rmb.fremarker.client.RmbServiceFeign;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author VULCAN
 */
@FeignClient(name = RmbServiceFeign.RMB_DATASOURCE)
public interface EngineServiceClient {

    /**
     * 调用规则引擎
     * @param id 规则引擎id
     * @return
     */
    @GetMapping("getEngineId/{id}")
    public EtlDataEngine getEngineId(@PathVariable("id")Long id);

}
